home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CyberMycha 2003 May
/
cmycha200305.iso
/
MutantStorm
/
setup_mutantstorm_demo.exe
/
{app}
/
script
/
robot_green_path.lua
< prev
next >
Wrap
Text File
|
2002-10-15
|
3KB
|
86 lines
-- leave me
local actor = ACTOR_preload()
-- leave me
-- default for this beastie
actor[cp_actor_name] = "robot_green_path"
actor[cp_model_dir] = "beasties"
actor[cp_model_name] = "robo-g-path"
actor[cp_hit_delay] = 3.0
actor[cp_move_type] = cmt_path + cmt_anim_to_move
actor[cp_actor_type] = cat_robot
actor[cp_i_collide_with_beasties] = cat_player + cat_robot
actor[cp_these_collide_with_me] = cat_player + cat_bullet + cat_robot
-- actor[cp_i_avoid_these_beasties] = cat_block + cat_blocker
-- actor[cp_i_am_repelled_by] = cat_block + cat_blocker + cat_robot
-- actor[cp_repel_dist] = 6.0
actor[cp_score] = 50
actor[cp_bonus_seq_hit] = 5
actor[cp_bonus_seq_score] = 1000
actor[cp_hit_power] = 5.0
-- movement
actor[cp_move_speed_min] = 0.4
actor[cp_move_speed_max] = 0.8
actor[cp_look_ahead_dist] = 6.0
actor[cp_target_stop_dist] = 10.0
actor[cp_turn_lock_angle_inner] = 85.0
actor[cp_turn_lock_angle_outer] = 95.0
actor[cp_turn_speed_still] = 3.0
actor[cp_turn_acceleration_still] = 0.3
actor[cp_turn_inertia_still] = 0.0
actor[cp_turn_speed_moving] = 2.0
actor[cp_turn_acceleration_moving] = 0.3
actor[cp_turn_inertia_moving] = 0.0
actor[cp_weight] = 3.0
actor[cp_launch_scale_min] = 32.5
actor[cp_launch_scale_max] = 37.5
actor[cp_health_percent] = 1500.0
actor[cp_launch_hue_shift] = color + -100
-- actor[cp_random_offset_x] = 10.0
-- actor[cp_random_offset_z] = 10.0
actor[cp_random_trajectory_offset] = 5.0
actor[cp_random_trajectory_offset_delay_min] = 1.0
actor[cp_random_trajectory_offset_delay_max] = 7.0
-- leave me
c_preload_model( actor )
-- leave me
c_set_random_anim( "blink", 65.0, 105.0, 0.0, 1.0 )
c_set_random_anim( "sing", 100.0, 100.0, 0.0, 5.0 )
c_add_sound_to_anim( "sing", "robo-sing", 50 )
c_add_particle_to_anim( "emerge", "mainbody", "robo-g_emerge" )
c_add_particle_to_anim( "emerge", "mainbody", "robo-g_emergepad" )
c_set_use_anim_for( "move_forward", "walk", 95.0, 105.0 )
c_add_sound_to_anim( "emerge", "robo-g_emerge", 150 )
-- c_add_sound_to_anim( "walk", "robo_step", 1 )
c_add_sound_to_event( "hit_active_bone", "robo_hit_p" )
local seq = { 0.0 , 0.175}
c_set_use_explosion_for( "bye_bye", "robo_green", exp_no_align, 30.0, 0.0, 700.0, 900.0, seq )
c_add_sound_to_explosion( "robo_green", "explode", "robo-g_death" )
c_set_use_explosion_for( "bye_bye", "robo_green_flash", exp_no_align, 0.0, 0.5, 3000.0, 3000.0, {0.0} )
c_add_particle_to_explosion( "robo_green_flash", "explode", "", "robo-g_flash" )
if cur_level_num > 101 then
-- new state
c_set_trigger_mutate( "robot_green", "beasties_time_alive", 2.0, 4.0, 1.0, 1.0, 35.0, 40.0 )
-- new state
end